html {
    scroll-behavior: smooth;
}

body {
    background: #eee;
}

.box-center {
    width: 1280px;
    margin: 0 auto;
}

html,
body {
    width: 100%;
    height: 100%;
    min-width: 1200px;
}

a:hover {
    color: #ff1f33 !important;
}

.header {
    position: absolute;
    width: 100%;
    height: 90px;
    padding-top: 30px;
    z-index: 999;

    .login {
        width: 42px;
        height: 20px;
        position: absolute;
        top: 5px;
        left: 200px;
    }

    .register {
        width: 60px;
        height: 20px;
        position: absolute;
        top: 5px;
        left: 278px;
        display: none;
        cursor: pointer;
    }

    .box-center {
        .logo-wraper {
            position: relative;
            float: left;
            width: 221px;
            padding-top: 5px;
            padding-left: 89px;
            overflow: hidden;

            .logo {
                display: block;
                height: 30px;
                line-height: 30px;

                img {
                    width: auto;
                    height: 100%;
                }
            }

            .slogan {
                display: block;
                margin-top: 4px;
                height: 17px;
                line-height: 17px;
                font-family: PingFangSC-Light;
                font-size: 12px;
                color: #666;
                letter-spacing: 17px;
            }
        }

        .search-wraper {
            position: relative;
            float: left;
            width: 703px;
            padding-bottom: 10px;

            .search-form {
                float: left;
                position: relative;

                .search-input {
                    float: left;
                    width: 573px;
                    height: 36px;
                    padding-left: 28px;
                    line-height: 36px;
                    background: #fff;
                    border: 2px solid #ff1f33;
                    border-right-width: 0;
                    border-top-left-radius: 10px;
                    border-bottom-left-radius: 10px;
                    font-family: MicrosoftYaHei;
                    font-size: 13px;
                    color: #222;
                }

                .search-btn {
                    float: left;
                    width: 100px;
                    height: 40px;
                    background: #ff1f33;
                    border-radius: 0 10px 10px 0;
                    font-family: MicrosoftYaHei;
                    font-size: 17px;
                    color: #fff;
                    line-height: 40px;
                    border: 0;
                    cursor: pointer;
                    text-align: center;
                }

                svg {
                    position: absolute;
                    left: 9px;
                    top: 12px;
                    width: 16px;
                    height: 16px;
                }
            }

            .hotword {
                position: absolute;
                left: 30px;
                top: 49px;

                .word {
                    float: left;
                    padding-right: 16px;
                    font-family: MicrosoftYaHei;
                    font-size: 13px;
                    color: #666;
                    line-height: 13px;
                }
            }

        }

        .nav {
            float: right;
            width: 81px;
            padding-top: 16px;
            position: relative;

            .websites {
                overflow: hidden;
                display: none;
                position: absolute;
                top: 38px;
                right: 0;
                width: 259px;
                height: 449px;
                background: #fff;
                box-shadow: 0 2px 10px 0 rgb(0 0 0 / 10%);
                border-radius: 12px;

                .item {
                    position: relative;
                    overflow: hidden;
                    padding: 20px 20px 4px;

                    .title {
                        position: absolute;
                        left: 20px;
                        top: 50%;
                        transform: translateY(-50%);
                        width: 26px;
                        padding-right: 16px;
                        font-family: MicrosoftYaHei;
                        font-size: 13px;
                        color: #666;
                        text-align: justify;
                        line-height: 19px;
                    }

                    .list {
                        overflow: hidden;
                        padding-left: 42px;
                    }

                    .pindao-a {
                        float: left;
                        width: 39px;
                        font-family: MicrosoftYaHei;
                        font-size: 13px;
                        color: #333;
                        text-align: center;
                        line-height: 13px;
                        margin-right: 5px;
                        margin-bottom: 16px;
                    }
                }
            }
        }

        .nav:hover .websites {
            display: block;
        }
    }
}

//当滑过指定距离之后，就个header添加这个类名
.header-fixed {
    position: fixed;
    background: #fff;
    box-shadow: 0 2px 10px 0 rgb(0 0 0 / 10%);
    padding-top: 20px;
    height: 60px;
}

.line1 {
    overflow: hidden;
    padding-top: 120px;

    .menu {
        float: left;
        width: 308px;
        margin-right: 2px;
        height: 444px;
        background: #fff;
        border-radius: 20px 2px 2px 20px;

        .levelone {
            padding: 16px 0 12px 16px;

            .item {
                overflow: hidden;
                padding: 4px 0 4px 4px;
                margin-bottom: 4px;
                height: 40px;
                border-radius: 100px 0 0 100px;

            }

            .img {
                float: left;
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background: #f5f5f6;
            }

            .list {
                overflow: hidden;
                float: left;
                margin-left: 12px;
                width: 208px;
                height: 40px;
                font-family: MicrosoftYaHei;
                font-size: 14px;
                color: #666;
                text-align: justify;
                line-height: 40px;
            }

            .a {
                float: left;
            }

            .dot {
                float: left;
                margin: -4px 4px 0;

            }

            .item:hover {
                background: pink;
            }
        }
    }

    .right-content {
        overflow: hidden;
        float: left;
        width: 970px;
        height: 444px;

        .channels {
            overflow: hidden;
            height: 54px;
            margin-bottom: 2px;
            background: #fff;
            border-radius: 2px 20px 2px 2px;

            .wrap {
                padding: 0 15px;
            }

            .item {
                float: left;
                padding: 0 15px;
                font-family: PingFangSC-Medium;
                font-size: 14px;
                color: #222;
                text-align: justify;
                line-height: 54px;
            }

        }


    }
}

#swiper1 {
    position: relative;
    float: left;
    overflow: hidden;
    width: 703px;
    height: 388px;
    background: #fff;
    border-radius: 2px;
}

#swiper2 {
    position: relative;
    overflow: hidden;
    height: 100%;

    .img1 {
        height: 265px;
        transition: all 0.5s;
    }

    .img1:hover {
        transform: scale(1.1);
    }

    .card-info {
        padding: 0 12px;
        background: #fff;
    }

    .card-title {
        display: block;
        overflow: hidden;
        height: 40px;
        margin: 10px 0 9px;
        line-height: 20px;

        .icon {
            vertical-align: middle;
            width: auto;
            height: 14px;
            border-radius: 2px;
            margin-right: 3px;
            margin-top: -1px;
        }

        .title {
            font-family: MicrosoftYaHei;
            font-size: 14px;
            color: #222;
            text-align: justify;
            word-break: break-all;
        }
    }

    .card-tag {
        overflow: hidden;
        height: 16px;
    }

    .card-detail {
        overflow: hidden;
        margin-top: 8px;

        .all-prices {
            float: left;
        }

        .discount-price {
            font-family: DINRoundPro-Medium;
            font-size: 24px;
            color: #ff1f33;
            line-height: 31px;

            i {
                font-family: Arial-BoldMT;
                font-size: 12px;
                color: #ff1f33;
                line-height: 31px;
            }
        }

        .initial-price {
            margin-left: 3px;
            font-family: MicrosoftYaHei;
            font-size: 12px;
            color: #999;
            line-height: 12px;
            text-decoration: line-through;

            i {
                font-style: normal;
            }
        }
    }

    .purchase-btn {
        float: right;
        width: 84px;
        height: 28px;
        line-height: 28px;
        background: #ff1f33;
        border-radius: 14px;
        text-align: center;
        font-family: FZLTZCHJW--GB1-0;
        font-size: 13px;
        color: #fff;
    }

    .purchase-btn:hover {
        color: #eee !important;
        background: #ff2f66;
    }

    --swiper-theme-color: #ff660;
    /* 设置Swiper风格 */
    --swiper-navigation-color: #00ff33;
    /* 单独设置按钮颜色 */
}

.line2 {
    overflow: hidden;
    margin-top: 30px;

    .right {
        float: left;
        width: 970px;
        margin-left: 2px;
    }
}

.guochao {
    float: left;
    overflow: hidden;
    position: relative;
    width: 308px;
    height: 632px;
    background: #f1eade;
    border-radius: 20px 2px 2px 20px;

    .info {
        overflow: hidden;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
        width: 100%;
        height: 217px;
        border-radius: 0 0 40px 40px;

        .inner {
            position: relative;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, .3);
        }

        .title {
            overflow: hidden;
            height: 30px;
            padding-top: 46px;
            font-family: WD-XLLubrifontSC-Regular;
            font-weight: 700;
            font-size: 24px;
            color: #fff;
            letter-spacing: 0;
            text-align: center;
            line-height: 1;
        }

        .desc {
            overflow: hidden;
            width: 230px;
            margin: 11px auto 0;
            height: 36px;
            font-family: PingFangSC-Regular;
            font-size: 12px;
            color: #fff;
            color: rgba(255, 255, 255, .9);
            letter-spacing: 0;
            text-align: center;
            line-height: 18px;
        }

        .bg {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            filter: blur(2px);
            -webkit-filter: blur(2px);
            background: url(../img/bg1.jpg) no-repeat center;
            background-size: cover;
        }
    }

    .list {
        position: absolute;
        left: 0;
        top: 160px;
        z-index: 2;
        width: 100%;
    }

    .card {
        width: 268px;
        margin: 0 auto 20px;
        height: 98px;
        background: #fff;
        border-radius: 53px;

        .a {
            position: relative;
            display: block;
            width: 100%;
            height: 100%;
        }

        .img {
            float: left;
            width: 90px;
            height: 90px;
            border-radius: 50%;
            margin: 4px;
        }

        .cover {
            position: absolute;
            left: 4px;
            top: 4px;
            width: 88px;
            height: 88px;
            border: 1px solid #999;
            border: 1px solid rgba(0, 0, 0, .05);
            border-radius: 50%;
        }

        .title {
            overflow: hidden;
            float: left;
            width: 142px;
            height: 40px;
            margin-top: 14px;
            margin-left: 8px;
            font-family: MicrosoftYaHei;
            font-size: 14px;
            color: #222;
            text-align: justify;
            line-height: 20px;
        }

        .icon {
            width: auto;
            height: 16px;
            margin-right: 4px;
            vertical-align: middle;
        }

        .price {
            overflow: hidden;
            float: left;
            width: 142px;
            height: 31px;
            margin-top: 3px;
            margin-left: 8px;
        }

        .now {
            font-family: Arial-BoldMT;
            font-size: 12px;
            color: #ff3b1f;
            line-height: 31px;
        }
    }
}

.secondkill {
    overflow: hidden;
    height: 350px;
    position: relative;
    background: #fff;
    border-radius: 2px 20px 2px 2px;

    .title {
        padding: 25px 20px 0;
        font-family: PingFangSC-Semibold;
        font-size: 20px;
        color: #222;
        letter-spacing: 0;
        line-height: 20px;

    }

    .time-wrap {
        position: absolute;
        left: 120px;
        top: 20px;
        width: 221px;
        height: 30px;
        line-height: 30px;
        background: pink;
        background: rgba(255, 59, 31, .1);
        border-radius: 15px;
    }

    .time-tile {
        float: left;
        padding-left: 16px;
        font-family: DINRoundPro-Medium;
        font-size: 14px;
        color: #333;
        letter-spacing: 0;
        text-align: justify;

        .time {
            padding: 0 2px;
        }
    }

    .time-detail {
        float: right;
        padding-top: 4px;
        padding-right: 16px;

        span {
            float: left;
            width: 20px;
            height: 22px;
            line-height: 22px;
            text-align: center;
            background: #000;
            border-radius: 4px;
            font-family: DINRoundPro-Medium;
            font-size: 14px;
            color: #fff;
            letter-spacing: 0;
        }

        i {
            float: left;
            width: 10px;
            margin-top: -6px;
            text-align: center;
            color: #000;
        }
    }
}

// 第三个轮播图
#swiper3 {
    width: 950px;

    .sWrap {
        position: relative;
        float: left;
        width: 170px;
        height: 256px;
        padding: 10px;
        z-index: 0;
    }

    .sCard {
        display: block;
        position: relative;
        width: 170px;
        height: 256px;

        .img {
            width: 170px;
            height: 170px;
            border-radius: 12px;
        }

        .border {
            position: absolute;
            left: 0;
            top: 0;
            width: 168px;
            height: 168px;
            border: 1px solid #999;
            border: 1px solid rgba(0, 0, 0, .05);
            border-radius: 12px;
        }

        .desc {
            overflow: hidden;
            height: 40px;
            margin-top: 5px;
            font-family: MicrosoftYaHei;
            font-size: 14px;
            color: #222;
            line-height: 20px;

            &:hover {
                color: red;
            }
        }

        .price {
            width: 170px;
            height: 28px;
            line-height: 28px;
            margin-top: 8px;
            background: no-repeat url(../img/bg2.png) left / contain;
            border-radius: 6px;
        }

        .now {
            float: left;
            width: 115px;
            height: 100%;
            text-align: center;
            font-family: Arial-BoldMT;
            font-size: 12px;
            color: #fff;

            .number {
                font-family: DINRoundPro-Medium;
                font-size: 24px;
                color: #fff;
            }
        }

        .origin {
            float: right;
            width: 55px;
            height: 100%;
            text-align: center;
            text-decoration: line-through;
            font-family: MicrosoftYaHei;
            font-size: 13px;
            color: #999;
        }
    }
}

.fanxianhaowu {
    margin-top: 2px;
    height: 280px;
    background: #fff;
    border-radius: 2px 2px 20px;

    .title {
        padding: 20px;
        font-family: PingFangSC-Semibold;
        font-size: 20px;
        color: #222;
        letter-spacing: 0;
        line-height: 20px;
    }

    .box-wrap {
        overflow: hidden;
    }

    .card-list {
        overflow: hidden;
        width: 999em;
        margin: 0 10px;
    }

    .card-wrap {
        float: left;
        width: 170px;
        height: 196px;
        margin: 0 10px;
    }

    .card {
        display: block;
    }

    .img-wrap {
        position: relative;
        overflow: hidden;
        width: 170px;
        height: 170px;
        border-radius: 50%;

        &:hover {
            .img {
                transform: scale(1.1);
            }
        }
    }

    .img {
        width: 170px;
        height: 170px;
        transition: all 300ms;
    }

    .border {
        position: absolute;
        left: 0;
        top: 0;
        width: 168px;
        height: 168px;
        border: 1px solid rgba(0, 0, 0, .05);
        border-radius: 50%;
    }

    .desc {
        overflow: hidden;
        height: 14px;
        padding-top: 12px;
        font-family: MicrosoftYaHei;
        font-size: 14px;
        color: #222;
        text-align: center;
        line-height: 14px;

        &:hover {
            color: red;
        }
    }
}

.line3 {
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 70px;

    .feed {
        overflow: hidden;
        background: #fff;
        border-radius: 20px;
        padding: 20px;

        .feed-title {
            font-family: PingFangSC-Semibold;
            font-size: 20px;
            color: #222;
            letter-spacing: 0;
            text-align: justify;
            line-height: 20px;
        }
    }

    .pager {
        margin: 20px auto;

        /* background: red; */
        ul {
            width: 700px;
            margin: 0 auto;
            list-style: none;
            display: flex;
            flex-direction: row;
            justify-content: space-evenly;

            li {
                width: 50px;
                height: 50px;
                text-align: center;
                line-height: 50px;
                border-radius: 15px;
                background: skyblue;
                cursor: pointer;
            }
        }
    }

    .content {
        list-style: none;
        width: 1191px;
        margin: 10px auto;
        overflow: hidden;

        li {
            width: 236px;
            height: 368px;
            border-radius: 10px;
            background: pink;
            border-top: 1px solid transparent;
            float: left;
            margin-right: 2px;
            margin-bottom: 2px;
            text-align: center;
        }
    }

    img {
        width: 198px;
        height: 198px;
        margin: 10px auto;
        display: block;
    }

    .des {
        height: 50px;
        line-height: 25px;
        /* text-align: center; */
        /* background: purple; */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .price {
        height: 50px;
        line-height: 50px;
        font-size: 30px;
        /* background: red; */
    }

    .btn {
        margin-top: 20px;
    }

    .show {
        background: blue !important;
    }
}

.line4 {
    height: 50px;
    text-align: center;
    margin-top: -20px;
    margin-bottom: 10px;

    span {
        border-bottom: 2px solid skyblue;
    }
}

.bottom {
    width: 75px;
    height: 200px;
    position: fixed;
    right: 10px;
    top: 70%;

    .icon {
        width: 3em;
        height: 3em;
        vertical-align: -0.15em;
        fill: currentColor;
        overflow: hidden;
        cursor: pointer;
        margin-bottom: 5px;
    }

    a {
        display: block;
        width: 3em;
        height: 3em;
        position: relative;

        span {
            text-align: center;
            width: 30px;
            height: 30px;
            display: block;
            position: absolute;
            right: 5px;
            top: 20px;
            color: #f1f1f1;
            font-size: 16px;
            background: red;
            border-radius: 30px;
            line-height: 30px;
        }
    }
}